<template>
  <div>
    <el-tabs v-model="comName" type="card" @tab-click="handleClick">
      <el-tab-pane label="积分商品订单" name="ProductOrder"></el-tab-pane>
      <el-tab-pane label="积分优惠券订单" name="CouponOrder"></el-tab-pane>
    </el-tabs>
    <component :is="comName"></component>
  </div>
</template>

<script lang="ts">
import { Vue, Component } from "vue-property-decorator";
import CouponOrder from "./CouponOrder.vue";
import ProductOrder from "./ProductOrder.vue";

@Component({
  components: {
    CouponOrder,
    ProductOrder,
  },
})
export default class IntegralCoup extends Vue {
  comName = "ProductOrder";

  handleClick(tab) {
    this.comName = tab.name;
  }
}
</script>

<style lang="scss" scoped></style>
